// user.js模块
// 导出
import { createStore, StoreOptions } from "vuex";

export default {
  namespaced: true, // 为每个模块添加一个前缀名，保证模块命明不冲突
  state: () => ({
    questionSubmitPage: [],
  }),
  mutations: {
    setQuestionList(state, value: string) {
      state.questionSubmitPage = value;
    },
  },
  actions: {
    setQuestionList({ commit, state }, payload) {
      commit("setQuestionList", payload);
    },
  },
} as StoreOptions<any>;
